<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>New unique parser: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="migration-2.html" title="Migration from 3.X versions">
<link rel="prev" href="migration-2.html" title="Migration from 3.X versions">
<link rel="next" href="ch08s03.html" title="GdaQuery and GdaCommand merge into GdaStatement">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="migration-2.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="migration-2.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch08s03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="id-1.2.9.3"></a>New unique parser</h2></div></div></div>
<p>Previous <span class="application">Libgda</span> versions had several builtin parsers relying on Lex/Yacc (or Flex/Bison) to analyze SQL with 
      the following limitations:
      </p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>not all the SELECT, INSERT, DELETE and UPDATE constructions were recognized</p></li>
<li class="listitem"><p>the parsers were generic and could not be adapted to the different database's SQL dialects</p></li>
<li class="listitem"><p>there were some difficult to track problems when several parsers are used at the same time</p></li>
</ul></div>
<p>
    </p>
<p>All the parsers have been removed in favor of a new parser <a class="link" href="GdaSqlParser.html" title="GdaSqlParser">GdaSqlParser</a> object which
      can be generic or specific to a database provider if the provider has specified it.</p>
<p>To create a generic <a class="link" href="GdaSqlParser.html" title="GdaSqlParser">GdaSqlParser</a> object, one can use the
      <a class="link" href="GdaSqlParser.html#gda-sql-parser-new" title="gda_sql_parser_new ()">gda_sql_parser_new()</a> method, and for a parser adapted to a specific 
      database's SQL dialect, use the <a class="link" href="GdaConnection.html#gda-connection-create-parser" title="gda_connection_create_parser ()">gda_connection_create_parser()</a> method.</p>
<p>The new parser uses <a class="ulink" href="http://www.hwaci.com/sw/lemon" target="_top">LEMON</a> generated parsers.</p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>